package com.weiwei.diancan;

import android.app.Application;
import android.content.IntentFilter;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import com.weiwei.diancan.activity.MyReeceivers;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by BMW on 2016/11/3.
 */
public class MyApplicatin extends Application {

    public static String tab_id = null;
    public static String order_id = null;
    public static MyApplicatin inst;
    @Override
    public void onCreate() {
        super.onCreate();
        inst = this;
        ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this).setDownsampleEnabled(true).build();
        Fresco.initialize(getApplicationContext(), config);
        JPushInterface.setDebugMode(true); 	// 设置开启日志,发布时请关闭日志
        JPushInterface.init(this);     		// 初始化 JPush
    }
}
